package com.zhupanlin.sqlSession;

import com.zhupanlin.pojo.Configuration;

/**
 * 描述信息：
 *
 * @author zhupanlin
 * @version 1.0
 * @date 2025/2/8 17:55
 */
public class DefaultSqlSessionFactory implements SqlSessionFactory{
    
      private Configuration configuration;
      
      public DefaultSqlSessionFactory(Configuration configuration) {
          this.configuration = configuration;
      }

    @Override
    public SqlSession openSession() {
        return new DefaultSqlSession(configuration);
    }
}